/*
*  Copyright 2019-2020 Zheng Jie
*
*  Licensed under the Apache License, Version 2.0 (the "License");
*  you may not use this file except in compliance with the License.
*  You may obtain a copy of the License at
*
*  http://www.apache.org/licenses/LICENSE-2.0
*
*  Unless required by applicable law or agreed to in writing, software
*  distributed under the License is distributed on an "AS IS" BASIS,
*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*  See the License for the specific language governing permissions and
*  limitations under the License.
*/
package me.zhengjie.business.domain;

import lombok.Data;
import cn.hutool.core.bean.BeanUtil;
import io.swagger.annotations.ApiModelProperty;
import cn.hutool.core.bean.copier.CopyOptions;
import org.hibernate.annotations.GenericGenerator;
import javax.persistence.*;
import javax.validation.constraints.*;
import java.math.BigDecimal;
import java.sql.Timestamp;
import java.io.Serializable;
import java.util.Date;

/**
* @website https://el-admin.vip
* @description /
* @author xiahongbo
* @date 2023-02-13
**/
@Entity
@Data
@Table(name="BIS_JSXX")
public class Jsxx implements Serializable {

    @Id
    @GenericGenerator(name = "hibernate-uuid", strategy = "uuid")
    @GeneratedValue(generator = "hibernate-uuid")
    @Column(name = "BIS_JSXX_ID")
    @ApiModelProperty(value = "主键ID")
    private String bisJsxxId;

    @Column(name = "BIS_JSXX_ZHID")
    @ApiModelProperty(value = "照护ID")
    private Long bisJsxxZhid;

    @Column(name = "BIS_JSXX_JZID")
    @ApiModelProperty(value = "就诊ID")
    private Long bisJsxxJzid;

    @Column(name = "BIS_JSXX_XM")
    @ApiModelProperty(value = "姓名")
    private String bisJsxxXm;

    @Column(name = "BIS_JSXX_SFZ")
    @ApiModelProperty(value = "身份证")
    private String bisJsxxSfz;

    @Column(name = "BIS_JSXX_LSH")
    @ApiModelProperty(value = "就诊流水号")
    private String bisJsxxLsh;

    @Column(name = "BIS_JSXX_JSSJ")
    @ApiModelProperty(value = "结算时间")
    private Timestamp bisJsxxJssj;

    @Column(name = "BIS_JSXX_YLZFY")
    @ApiModelProperty(value = "医疗总费用")
    private BigDecimal bisJsxxYlzfy;

    @Column(name = "BIS_JSXX_TCZF")
    @ApiModelProperty(value = "统筹支付金额")
    private BigDecimal bisJsxxTczf;

    @Column(name = "BIS_JSXX_GRXJ")
    @ApiModelProperty(value = "个人现金支付")
    private BigDecimal bisJsxxGrxj;

    @Column(name = "BIS_JSXX_DJH")
    @ApiModelProperty(value = "单据号(发票号)")
    private String bisJsxxDjh;

    @Column(name = "BIS_JSXX_TCBL")
    @ApiModelProperty(value = "统筹段自付比例")
    private String bisJsxxTcbl;

    @Column(name = "BIS_JSXX_YLJGMC")
    @ApiModelProperty(value = "医疗机构名称")
    private String bisJsxxYljgmc;

    @Column(name = "BIS_JSXX_YLJGBM")
    @ApiModelProperty(value = "医疗机构编码")
    private String bisJsxxYljgbm;

    @Column(name = "BIS_JSXX_YBKH")
    @ApiModelProperty(value = "医保卡号")
    private String bisJsxxYbkh;

    @Column(name = "BIS_JSXX_SFTF")
    @ApiModelProperty(value = "是否退费")
    private String bisJsxxSftf;

    @Column(name = "BIS_JSXX_TFSJ")
    @ApiModelProperty(value = "退费时间")
    private Date bisJsxxTfsj;

    @Temporal(TemporalType.DATE)
    @Column(name = "BIS_JSXX_RYRQ")
    @ApiModelProperty(value = "入院日期")
    private Date bisJsxxRyrq;

    @Temporal(TemporalType.DATE)
    @Column(name = "BIS_JSXX_CYRQ")
    @ApiModelProperty(value = "出院日期")
    private Date bisJsxxCyrq;

    @Column(name = "BIS_JSXX_ZYTS")
    @ApiModelProperty(value = "住院天数")
    private Long bisJsxxZyts;



    public void copy(Jsxx source){
        BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
    }
}